<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="app-frame.master"  CodeFile="Datasheet.aspx.cs" Inherits="Datasheet" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
<script language="javascript" type="text/javascript" src="scripts/displaygrid.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/Datasheet.js"></script> <%--Added by Jayashree on 12-Sep-2014,for js file--%>

<table width="100%" border="0"   cellpadding="0" cellspacing="0">
    <tr>
        <td align="left" valign="middle" style="height:4px;"><asp:Label CssClass="defaultFont" ID="lblMessage" runat="server" ForeColor="Black" Font-Size="X-Small" Font-Bold="False" Font-Italic="False"></asp:Label></td>
        <td style="width: 1%"></td>
        <%--<td>
            <asp:UpdatePanel ID="UP_ERRMSG" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                    <asp:Label ID="lblMessage" runat="server" enableviewstate="true" Font-Names="Arial" Font-Size="X-Small" ForeColor="Black"></asp:Label>  
                </ContentTemplate>
            </asp:UpdatePanel>  
        </td>--%>
    </tr>
    <%--<tr>
            <td style="width: 68%" id="td_accord" runat="server"><asp:Label ID="ltaccord" runat ="server" CssClass="defaultFont" Font-Size ="8.5pt" Width="100%" ForeColor="#404040" Height="15px"></asp:Label><br /></td>
    </tr>--%>
    <tr>
        <td>
            <table cellpadding="0" class="Dynamic_PageHeaderRow" cellspacing="0" width="100%">
                <tr class="pgForm_title">
                    <td align="left" valign="middle">
                        <asp:PlaceHolder ID="ph_page_caption" runat="server"></asp:PlaceHolder>
                        <asp:Label ID="lblHeader" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                            <%--<img id="imgHelp" border="0" height="11" src="../images/ic_help.png" alt="" width="12"  />--%>
                            <%--<asp:ImageButton runat="server" ID="imgHelp" ImageUrl="images/ic_help.png" Visible="false" CausesValidation="False"></asp:ImageButton>--%>
                        <asp:Image runat="server" ID="imgHelp" ImageUrl="images/ic_help.png" Visible="false" CausesValidation="False"></asp:Image>&nbsp;
                    </td>
                </tr>
                <%--<tr class="Dynamic_PageHeaderRow">
                    <td colspan="5" >
                        <span></span><span style="font-size: 10pt; font-family: Arial;vertical-align:middle ">
                        <asp:Label ID="lblHeader" runat="server" ></asp:Label></span><br />
                    </td>
                </tr>--%>
            </table>
        </td>
        <td style="width: 1%">&nbsp;</td>
    </tr>
    <tr>
        <td align="center">
            <asp:PlaceHolder ID="ph_page_desc" runat="server"></asp:PlaceHolder>
        </td>
        <td style="width: 1%"></td>
    </tr>
</table>

<table id="page_tooltip_div" border="0" cellpadding="0" cellspacing="0" width="100%" >
    <tr>
        <td class="controlFont" style="padding-left:2px;padding-top:1px;">
            <asp:DropDownList ID="ddlPageViewType"  Height="20px" CssClass="controlFont" EnableViewState="true" AutoPostBack="true" runat="server" onchange="javascript:return getPageViewType(this);" OnSelectedIndexChanged="ddlPageViewType_SelectedIndexChanged"></asp:DropDownList>       
        </td>
        <td style="padding-left:5px;">
            <asp:Label ID="lblListHeader" runat="server" Text="" CssClass="controlFont"></asp:Label>
        </td>
        <td align="right">
            <%--<div id="panelSearchholder" runat="server">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="padding-top:1px;">
                            <asp:TextBox Text="Record Search" CssClass="controlFont" ID="txtObjectSearch"  Width="120px" Height="20px" runat="server" onFocus="javascript:mb_datasrch_txt_focus(this);" onBlur="javascript:mb_datasrch_txt_blur(this);" ToolTip="Search all records" style="vertical-align:middle;color:#808080;padding-left:3px;border:solid 1px #7F9DB9;border-right:none;"></asp:TextBox>
                        </td>
                        <td style="padding-top:1px;" >
                            <a id="ImageButton1" href="#" class="SearchPopup"  title="Search all records" onclick="javascript:return doObjectSearch();"  style="vertical-align:middle;" runat="server" onserverclick="a_search_ServerClick"><img id="img_search" border="0" alt="Search all records" class="SearchPopup"  src="images/objectsearch2_disabled.gif" /></a>
                            <asp:Button ID="btnObjectSearch" OnClientClick="javascript:return doObjectSearch();" UseSubmitBehavior="true" runat="server" Text="Go" Visible="false" CausesValidation="False" onMouseOver="mb_datasrch_img_focus()" onFocus="mb_datasrch_img_focus()" onmouseout="mb_datasrch_img_blur()" onBlur="mb_datasrch_img_blur()" />
                            <asp:HiddenField ID="hfObjectSearch" runat="server" />
                        </td>
                        <td align="right" style="padding-right:2px;padding-left:2px;padding-top:1px;vertical-align:bottom;">
                            <asp:Button ID="btnfilter" OnClientClick="javascript:FilterClick();" Text="Filter" UseSubmitBehavior="false" Visible="false" runat="server" ></asp:Button>
                            <asp:LinkButton style="text-decoration:none;vertical-align:bottom;" PostBackUrl="~/Datasheet.aspx" OnClientClick="javascript:reload();return false;" CausesValidation="false" ID="lnkBtnViewAll" runat="server" Visible="false" CssClass="controlFont" Font-Size="11px" Font-Bold="true" ToolTip="View all records" OnClick="lnkBtnViewAll_Click" ><table style="border:solid 1px #7F9DB9;height:20px;cursor:pointer;" border='0' cellpadding='0' cellspacing='0'><tr><td><img src='images/undo.gif'  border='0' alt="View all Records" style="margin-left:3px;" /></td><td style="padding-left:3px;padding-right:3px;font-weight:bold;"  class="controlFont">View All</td></tr></table></asp:LinkButton>
                            <asp:PlaceHolder id="ph_quick_search" runat="server"></asp:PlaceHolder>
                        </td>
                    </tr>
                </table>
                <script language="JavaScript" type="text/javascript" src="scripts/Datasheet_middle.js"></script>
            </div>--%>
        </td>
        <td style="width: 1%"></td>
    </tr>
    <tr class="controlFont">
        <td colspan="4" style="padding-left:2px;padding-bottom:1px;padding-top:1px;">
            <input id="btnAddNewTop" type="button" value="Add New" runat="server" onserverclick="btnAddNewTop_ServerClick"   />
        </td>
    </tr>
</table>

<asp:UpdatePanel ID ="up" runat="server" UpdateMode="Always">
    <ContentTemplate>
        <%--<table runat="server" width="100%" cellpadding="0" cellspacing="0">
        
            <tr>
                  <td colspan ="6"><asp:Label ID="lblMessage" runat="server" EnableViewState="False" Font-Names="Arial"

                       Font-Size="X-Small" ForeColor="Black"></asp:Label>    
                  </td>
            </tr>
        </table>--%>
        
        <table width="100%" cellpadding="0" cellspacing="0" runat="server">
            <tr>
                <td>
                    <table id="datasheet" class="NotesTable" runat="server" cellpadding="0" cellspacing="0"></table>
                </td>
                <td style="width: 1%"></td>
            </tr>
        </table>
                
                <%--<asp:Timer ID="timer1" runat="server" Interval="60000" OnTick="timer1_Tick" ></asp:Timer>--%>
    </ContentTemplate>
    <Triggers >
               <%-- <asp:AsyncPostBackTrigger ControlID="timer1" />--%>
    </Triggers>
</asp:UpdatePanel>
<br />
<table id="table1" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" runat="server"></table>
    <asp:HiddenField ID="HiddenField1" runat="server" />
    <asp:HiddenField ID="hihRowCount" runat="server" />
    <asp:HiddenField ID="hihInsertRow" runat="server" />
    <asp:HiddenField ID="hihUpdate" runat="server" />
    <asp:HiddenField ID="hihexistingIds" runat="server" />
    <asp:HiddenField ID="hihDelete" runat="server" />
    <asp:HiddenField ID="hihrowids" runat="server" />
    <asp:HiddenField ID="hihpagesetid" runat="server" />
    <asp:HiddenField runat="server" ID="hihMoreCount" Value="1" />
    <script language="JavaScript" type="text/javascript" src="scripts/Datasheet_bottom.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
</asp:Content>